package com.ruoyi.factory.qylock.mapper;

import com.ruoyi.factory.qylock.domain.EreceiptBody;
import com.ruoyi.factory.qylock.domain.EreceiptHead;

import java.util.List;


/**
 * EreceiptMapper接口
 * 
 * @author ruoyi
 * @date 2024-05-17
 */
public interface EreceiptHeadMapper 
{
    /**
     * 查询Ereceipt
     * 
     * @param id Ereceipt主键
     * @return Ereceipt
     */
    public EreceiptHead selectEreceiptHeadById(Long id);

    public EreceiptHead selectEreceiptHeadByCode(String code);

    /**
     * 查询Ereceipt列表
     * 
     * @param ereceiptHead Ereceipt
     * @return Ereceipt集合
     */
    public List<EreceiptHead> selectEreceiptHeadList(EreceiptHead ereceiptHead);

    public List<EreceiptHead> selectEreceiptHeadByIds(String[] ids);

    /**
     * 新增Ereceipt
     * 
     * @param ereceiptHead Ereceipt
     * @return 结果
     */
    public int insertEreceiptHead(EreceiptHead ereceiptHead);

    /**
     * 修改Ereceipt
     * 
     * @param ereceiptHead Ereceipt
     * @return 结果
     */
    public int updateEreceiptHead(EreceiptHead ereceiptHead);

    public int updateEreceiptHeadstate(EreceiptHead ereceiptHead);

    /**
     * 删除Ereceipt
     * 
     * @param id Ereceipt主键
     * @return 结果
     */
    public int deleteEreceiptHeadById(Long id);

    /**
     * 批量删除Ereceipt
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEreceiptHeadByIds(Long[] ids);

    /**
     * 批量删除电子收据
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEreceiptBodyByEreceiptheadids(Long[] ids);
    
    /**
     * 批量新增电子收据
     * 
     * @param ereceiptBodyList 电子收据列表
     * @return 结果
     */
    public int batchEreceiptBody(List<EreceiptBody> ereceiptBodyList);
    

    /**
     * 通过Ereceipt主键删除电子收据信息
     * 
     * @param id EreceiptID
     * @return 结果
     */
    public int deleteEreceiptBodyByEreceiptheadid(Long id);
}
